# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=tinycbor
pkgver=0.6.0
pkgrel=0
pkgdesc="Concise Binary Object Representation (CBOR) Library"
url="https://github.com/intel/tinycbor"
checkdepends="qt5-qtbase-dev"
arch="x86_64" # only works on x86_64
license="MIT"
subpackages="$pkgname-dev lib$pkgname:libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/tinycbor/archive/v$pkgver.tar.gz"

build() {
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr/ install
	rm -f "$pkgdir"/usr/lib/*.a
}

sha512sums="
af1ed05c03d3aed56e35fdcaad3235992f96b5043b594c0246e600e4b1f085df78c5345beaac8758c2b5db2952ab83997019de5940857eecb81d84b6fb642093  tinycbor-0.6.0.tar.gz
"
